﻿using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PipeSockets
{
    public interface IProtocolParser
    {
        bool Decode(ReadOnlySequence<byte> buffer, out ReadOnlySequence<byte> message, out long bytesRead);
        Memory<byte> Encode(byte[] message);
    }
}
